[Master]-]Withholding Tax Entries are not generated at payment because the Withholding Tax. Prod. Posting Group field gets not transferred to the payment line#9479
Conversation
…e the Withholding Tax. Prod. Posting Group field gets not transferred to the payment line [AB#639524](https://dynamicssmb2.visualstudio.com/1fcb79e7-ab07-432a-a3c6-6cf5a88ba4a5/_workitems/edit/639524)
…iple Payment templates)
…stically in W1 and localizations
…payment application scenario
Copilot PR ReviewIteration 2 · Outcome: completed Knowledge source: https://github.com/microsoft/BCQuality@186d8a131465475c79244d994acb872cd5c0d4bf Findings by domainFindings split into Knowledge-backed (cite a BCQuality article) and Agent (the agent's own judgement, no matching BCQuality rule).
Totals: 0 knowledge-backed · 1 agent findings. Orchestrator pre-filter (2 file(s) excluded)
Findings produced by the AL review agent v1.7.3. Reply 👎 on any inline comment to flag false positives. |
There was a problem hiding this comment.
Pull request overview
This PR addresses missing Withholding Tax (WHT) posting behavior when creating vendor payments by ensuring the Withholding Tax Product Posting Group is transferred onto the generated payment journal line (Create Payment flow), so WHT entries can be generated correctly at payment posting.
Changes:
- Subscribes to Create Payment to copy
"Wthldg. Tax Prod. Post. Group"onto the paymentGen. Journal Linebased on the applied invoice’s WHT entry. - Adds a new test intended to validate WHT product posting group propagation (currently focused on invoice-posting/WHT-entry behavior).
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.
| File | Description |
|---|---|
| src/Apps/W1/WithholdingTax/Test/src/ERMWithholdingTaxTestsII.Codeunit.al | Adds a new test and label related to WHT product posting group propagation. |
| src/Apps/W1/WithholdingTax/app/src/Purchase/Transaction/WithholdingTaxJnlSubscriber.Codeunit.al | Adds Create Payment event subscriber to populate WHT product posting group on generated payment journal lines. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
AB#639524